package com.zh.yqbj.exception.accountExcption;

import com.zh.yqbj.constant.ExceptionCodeConstant;

public class DuplicateAccountException extends Exception {

    private static final String MSG = "该账号已被注册,";

    /**
     * 该账号已被注册
     */
    public DuplicateAccountException() {
        super(MSG + ExceptionCodeConstant.DUPLICATE_ACCOUNT_ERROR_CODE);
    }

    public DuplicateAccountException(String msg) {
        super(msg + ExceptionCodeConstant.DUPLICATE_ACCOUNT_ERROR_CODE);
    }
}
